package com.wgo.precise.client.ui.view.session;


import org.eclipse.ui.ISharedImages;
import org.eclipse.ui.PlatformUI;

import com.wgo.precise.client.ui.controller.RequirementPlugin;
import com.wgo.precise.client.ui.view.util.ViewerAction;


/**
 * 
 * @author Petter L. H. Eide
 * @version $Id: LogoutAction.java,v 1.1 2006-01-23 19:58:36 petterei Exp $
 */
public class LogoutAction extends ViewerAction {

    public LogoutAction() {
        super("Logout");
        setToolTipText("Log out from server.");
        setImageDescriptor(PlatformUI.getWorkbench().getSharedImages().getImageDescriptor(ISharedImages.IMG_DEF_VIEW));
//        setDisplayMessage("You are now logged in to server ");
    }

    /**
     * @see org.eclipse.jface.action.Action#run()
     */
    @Override
    public void run() {
        RequirementPlugin.getInstance().disposeSession();
        super.run();
    }

    
}
